Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor bugs involving model manager handling of model paths #6024

Merged
merged 5 commits into from
Mar 22, 2024

Conversation

lstein
Copy link
Collaborator

@lstein lstein commented Mar 21, 2024

Summary

This PR corrects a number of minor bugs in model path handling found while testing rc4.

  • Leave models found in the autoimport directory there. Do not move them into the models hierarchy.
  • If model name, type or base is updated and model is in the models directory, update its path as appropriate.
  • On startup during model scanning, if a model's path is a symbolic link, then resolve to an absolute path before deciding it is a new model that must be hashed and registered. (This prevents needless hashing at startup time).

Related Issues / Discussions

QA Instructions

The model installer unit tests have been updated to check these conditions.

Merge Plan

Merge when approved.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

- Leave models found in the `autoimport` directory there. Do not move them
  into the `models` hierarchy.
- If model name, type or base is updated and model is in the `models` directory,
  update its path as appropriate.
- On startup during model scanning, if a model's path is a symbolic link, then resolve
  to an absolute path before deciding it is a new model that must be hashed and
  registered. (This prevents needless hashing at startup time).
@github-actions github-actions bot added api python PRs that change python files services PRs that change app services python-tests PRs that change python tests labels Mar 21, 2024
@psychedelicious psychedelicious self-requested a review March 22, 2024 01:04
@lstein lstein enabled auto-merge (squash) March 22, 2024 01:06
@lstein lstein merged commit eb558d7 into main Mar 22, 2024
14 checks passed
@lstein lstein deleted the lstein/bugfix/fix-installer-paths branch March 22, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api python PRs that change python files python-tests PRs that change python tests services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants